home *** CD-ROM | disk | FTP | other *** search
- diff -cr ../mntlib33/Bugs ./Bugs
- *** ../mntlib33/Bugs Sun Jun 20 09:02:40 1993
- --- ./Bugs Tue Jul 6 09:45:30 1993
- ***************
- *** 30,39 ****
- The parameter -I/usr/include could be added in the GNU Makefile.
- For you to decide upon the correct action!
-
- ! [I'm not sure I understand this. It sounds like it could happen if you
- ! put the Mint library header files in a directory such as /usr/lib, and then
- ! compile some GNU program in a dir such as /usr/gnu. Solution: name your
- ! include directory something else (e.g. /usr/include) -entropy]
-
- abort.c: ++entropy
- Should fclose() all streams in the same way of exit(). Also, if my
- --- 30,40 ----
- The parameter -I/usr/include could be added in the GNU Makefile.
- For you to decide upon the correct action!
-
- ! [I just read this for the 90th time and I finally understand what's being
- ! said (I can be pretty dense sometimes. <grin>) I guess making symbolic
- ! links for the sys/ files is the best solution but I'm reluctant to
- ! distribute the library that way as I'm not sure how ZOO would unpack the
- ! links on a TOS filesystem. -entropy]
-
- abort.c: ++entropy
- Should fclose() all streams in the same way of exit(). Also, if my
- ***************
- *** 65,73 ****
- change only CLOCKS_PER_SEC. CLK_TCK is used in times.c. CLOCKS_PER_SEC
- is used in sleep.c.
-
- - fcntl.c: ++entropy
- - Need emulation for POSIX-required F_SETLKW. Should be trivial.
- -
- getopt.c, unistd.h: ++boender
- The three externally usable variables defined in getopt.c should be
- included in <unistd.h>, where getopt() is declared too. These
- --- 66,71 ----
- ***************
- *** 195,207 ****
-
- types.h: ++entropy
- Need ssize_t for POSIX compliance.
- -
- - unistd.h: ++entropy
- - The following should be #ifndef _POSIX_SOURCE: abort(), chmod(), creat(),
- - getwd(), kill(), mkdir(), mktemp(), open(), psignal(), _read(),
- - setlinebuf(), setegid(), seteuid(), setregid(), setreuid(), stime(),
- - tell(), umask(), _write(), system(), getpass(). Some of them should be in
- - a different header when _POSIX_SOURCE is defined (or always?).
-
- unlink.c: ++nox@jelal.north.de
- When a file is still open on a GEMDOS filesystem MiNT already sets some
- --- 193,198 ----
- Only in .: Changelog
- diff -cr ../mntlib33/Copyright ./Copyright
- *** ../mntlib33/Copyright Wed Jun 23 05:40:06 1993
- --- ./Copyright Tue Jul 6 07:58:02 1993
- ***************
- *** 64,70 ****
- Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
-
-
- ! libgcc2 is:
-
- /* Copyright (C) 1989, 1992 Free Software Foundation, Inc.
-
- --- 64,70 ----
- Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
-
-
- ! libgcc2.c is:
-
- /* Copyright (C) 1989, 1992 Free Software Foundation, Inc.
-
- ***************
- *** 89,92 ****
- --- 89,114 ----
- the resulting executable to be covered by the GNU General Public License.
- This exception does not however invalidate any other reasons why
- the executable file might be covered by the GNU General Public License. */
- +
-
- + stab.h and stab.def (in the include directory) are:
- +
- + /* Table of DBX symbol codes for the GNU system.
- + Copyright (C) 1988 Free Software Foundation, Inc.
- +
- + This program is free software; you can redistribute it and/or modify
- + it under the terms of the GNU General Public License as published by
- + the Free Software Foundation; either version 1, or (at your option)
- + any later version.
- +
- + This program is distributed in the hope that it will be useful,
- + but WITHOUT ANY WARRANTY; without even the implied warranty of
- + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- + GNU General Public License for more details.
- +
- + You should have received a copy of the GNU General Public License
- + along with this program; if not, write to the Free Software
- + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
- +
- + /* This contains contribution from Cygnus Support. */
- +
- diff -cr ../mntlib33/Files ./Files
- *** ../mntlib33/Files Tue Jul 6 05:34:54 1993
- --- ./Files Thu Jul 8 08:37:26 1993
- ***************
- *** 1,7 ****
- Common files:
-
- atof.c fputs.c lseek.c strcoll.c
- ! Files fread.c ltoa.c strcpy.c
- atol.c frexp.cpp malloc.c strcspn.c
- _addsubd.cpp bblink.c frwbin.c memccpy.c strdup.c
- _addsubs.cpp bcmp.c fseek.c memchr.c strerror.c
- --- 1,7 ----
- Common files:
-
- atof.c fputs.c lseek.c strcoll.c
- ! fread.c ltoa.c strcpy.c
- atol.c frexp.cpp malloc.c strcspn.c
- _addsubd.cpp bblink.c frwbin.c memccpy.c strdup.c
- _addsubs.cpp bcmp.c fseek.c memchr.c strerror.c
- ***************
- *** 9,28 ****
- _cmpsf2.cpp binmode.c ftw.c mktemp.c stricmp.c
- _divdf3.cpp bsearch.c fungetc.c modf.cpp strlen.c
- _divmods.s bzero.cpp fwrite.c strlwr.c
- ! gbl-ctors.h
- ! _divsf3.cpp calloc.c getbuf.c strncat.c
- ! _extends.cpp chdir.c getenv.c obstack.c strncmp.c
- ! _fixdfsi.cpp chmod.c getlogin.c perror.c strncpy.c
- ! ctermid.c pgrp.c
- _fixsfsi.cpp ctime.c getopt.c psignal.c strnicmp.c
- _fltsi.cpp ctype.c getpass.c putenv.c strpbrk.c
- ! cuserid.c
- ! _fltsisf.cpp defmode.c getpid.c qsort.c strrchr.c
- ! _fxunsd.cpp difftime.c getpw.c raise.c strrev.c
- ! _isnan.s div.c gets.c rand.c strspn.c
- ! _muldf3.cpp div.cpp getuid.c random.c strstr.c
- ! _mulsf3.cpp doprnt.c getw.c realloc.c strtok.c
- ! _mulsi3.s gmon.c regexp.c strtol.c
- _negdf2.s eprintf.c gnulib2.c regsup.c strtoul.c
- strupr.c
- _negsf2.s errbase.h grp.c sbrk.c system.c
- --- 9,26 ----
- _cmpsf2.cpp binmode.c ftw.c mktemp.c stricmp.c
- _divdf3.cpp bsearch.c fungetc.c modf.cpp strlen.c
- _divmods.s bzero.cpp fwrite.c strlwr.c
- ! _divsf3.cpp calloc.c gbl-ctors.h strncat.c
- ! _extends.cpp chdir.c getbuf.c obstack.c strncmp.c
- ! _fixdfsi.cpp chmod.c getenv.c perror.c strncpy.c
- ! ctermid.c getlogin.c pgrp.c
- _fixsfsi.cpp ctime.c getopt.c psignal.c strnicmp.c
- _fltsi.cpp ctype.c getpass.c putenv.c strpbrk.c
- ! _fltsisf.cpp cuserid.c getpid.c qsort.c strrchr.c
- ! _fxunsd.cpp defmode.c getpw.c raise.c strrev.c
- ! _isnan.s difftime.c gets.c rand.c strspn.c
- ! _muldf3.cpp div.c getuid.c random.c strstr.c
- ! _mulsf3.cpp div.cpp getw.c realloc.c strtok.c
- ! _mulsi3.s doprnt.c gmon.c regexp.c strtol.c
- _negdf2.s eprintf.c gnulib2.c regsup.c strtoul.c
- strupr.c
- _negsf2.s errbase.h grp.c sbrk.c system.c
- ***************
- *** 29,38 ****
- _normdf.cpp fclose.c ic.c setbuf.c sysvar.c
- _normsf.cpp fdopen.c setjmp.cpp textio.c
- _truncdf.cpp fflush.c ig.c setlocal.c time.c
- ! ffs.c
- ! _udivmod.s fgetc.c il.c setvbuf.c timeoday.c
- ! _umulsi3.s fgets.c ip.c sgtty.c tmpfile.c
- ! a64l.c
- abort.c filbuf.c iw.c siglist.c tmpnam.c
- abs.c findfile.c ldexp.cpp sprintf.c toxxx.c
- access.c flonum.h lib.h stksiz.c utime.c
- --- 27,35 ----
- _normdf.cpp fclose.c ic.c setbuf.c sysvar.c
- _normsf.cpp fdopen.c setjmp.cpp textio.c
- _truncdf.cpp fflush.c ig.c setlocal.c time.c
- ! _udivmod.s ffs.c il.c setvbuf.c timeoday.c
- ! _umulsi3.s fgetc.c ip.c sgtty.c tmpfile.c
- ! a64l.c fgets.c
- abort.c filbuf.c iw.c siglist.c tmpnam.c
- abs.c findfile.c ldexp.cpp sprintf.c toxxx.c
- access.c flonum.h lib.h stksiz.c utime.c
- ***************
- *** 45,73 ****
- MiNT library:
-
- Bugs
- ! Changes fscanf.c popen.c statfs.c
- ! Copyright
- ! GMakefile.16
- ! GMakefile.32
- ! Makefile getcwd.c read.c symlink.c
- ! PatchLev.h getdtabl.c link.c readme sysconf.c
- ! alarm.c getgroup.c lockf.c rename.c
- ! atexit.c gethostn.c main.c rmdir.c thread.c
- ! getpages.c scandir.c times.c
- ! clock.c getrusag.c scanf.c ttyname.c
- ! close.c select.c uname.c
- ! console.c mincl setrlimi.c unlink.c
- ! sigactio.c unx2dos.c
- ! crt0.cpp heapbase.c mkdir.c sigblock.c utmp.c
- ! crtinit.c ident.c mknod.c signal.c vfork.cpp
- ! dirent.c inistack.c nice.c sleep.c wait.c
- ! dup.c initsig.c open.c spawn.c wait3.c
- ! exec.c ioctl.c osbind.cpp spawnve.c waitpid.c
- ! execp.c
- ! fcntl.c isatty.c spawnvp.c write.c
- ! fopenp.c kill.c pause.c sscanf.c wtmp.c
- ! fork.c killpg.c pipe.c stat.c
- !
- TOS library:
-
- clock.c getcwd.c null.c spawnvp.c
- --- 42,68 ----
- MiNT library:
-
- Bugs
- ! Changelog
- ! Copyright execp.c isatty.c spawnvp.c
- ! Files fcntl.c kill.c pause.c sscanf.c
- ! GMakefile.16 fopenp.c stat.c
- ! GMakefile.32 fork.c killpg.c pipe.c statfs.c
- ! GNUGPL2 fscanf.c popen.c symlink.c
- ! Makefile getcwd.c read.c sysconf.c
- ! OChangelog rename.c thread.c
- ! PatchLev.h getdtabl.c link.c rmdir.c times.c
- ! README getgroup.c lockf.c scandir.c ttyname.c
- ! alarm.c gethostn.c main.c scanf.c uname.c
- ! atexit.c getpages.c select.c unlink.c
- ! clock.c getrusag.c setrlimi.c unx2dos.c
- ! close.c utmp.c
- ! console.c mincl sigactio.c vfork.cpp
- ! crt0.cpp heapbase.c mkdir.c sigblock.c wait.c
- ! crtinit.c ident.c mknod.c signal.c wait3.c
- ! dirent.c inistack.c nice.c sleep.c waitpid.c
- ! dup.c initsig.c open.c spawn.c write.c
- ! exec.c ioctl.c osbind.cpp spawnve.c wtmp.c
- !
- TOS library:
-
- clock.c getcwd.c null.c spawnvp.c
- diff -cr ../mntlib33/Makefile ./Makefile
- *** ../mntlib33/Makefile Fri Jun 25 14:27:06 1993
- --- ./Makefile Thu Jul 8 06:06:56 1993
- ***************
- *** 97,104 ****
- b=
- endif
-
- # common subset of options; no int size or omit-frame-pointer:
- ! COPTS= $(DEBUG) $(OPTIM) $(XFLAGS)
-
- # Base options CC; includes int size but not omit-frame-pointer
- CFFLAGS = $(SHORT) $(COPTS)
- --- 97,112 ----
- b=
- endif
-
- + ifneq (,$(findstring sfp004,$(TARGET)))
- + SFPFLAG = -Dsfp004
- + SFP=sfp
- + else
- + SFPFLAG=
- + SFP=
- + endif
- +
- # common subset of options; no int size or omit-frame-pointer:
- ! COPTS= $(DEBUG) $(OPTIM) $(XFLAGS) $(SFPFLAG)
-
- # Base options CC; includes int size but not omit-frame-pointer
- CFFLAGS = $(SHORT) $(COPTS)
- ***************
- *** 113,134 ****
- ASFLAGS= -c
-
- # flags to $(CC) when running preprocessor and assembler
- ! PPFLAGS= $(XPFLAGS) $(SHORT) -P -c
-
- # library targets
- ifdef MINTFLAG
-
- ! CLIB= $bmint$g$(ST).olb
- ! CLIB020=$bmint$g$(ST)020.olb
- ! IIOLIB= $bmiio$g$(ST).olb
- CRT0=$bmcrt0.o
- GCRT0=$bmgcrt0.o
-
- else
-
- ! CLIB= $bgnu$g$(ST).olb
- ! CLIB020=$bgnu$g$(ST)020.olb
- ! IIOLIB= $biio$g$(ST).olb
- CRT0=$bcrt0.o
- GCRT0=$bgcrt0.o
-
- --- 121,142 ----
- ASFLAGS= -c
-
- # flags to $(CC) when running preprocessor and assembler
- ! PPFLAGS= $(XPFLAGS) $(SHORT) $(SFPFLAG) -P -c
-
- # library targets
- ifdef MINTFLAG
-
- ! CLIB= $bmint$g$(SFP)$(ST).olb
- ! CLIB020=$bmint$g$(SFP)$(ST)020.olb
- ! IIOLIB= $bmiio$g$(SFP)$(ST).olb
- CRT0=$bmcrt0.o
- GCRT0=$bmgcrt0.o
-
- else
-
- ! CLIB= $bgnu$g$(SFP)$(ST).olb
- ! CLIB020=$bgnu$g$(SFP)$(ST)020.olb
- ! IIOLIB= $biio$g$(SFP)$(ST).olb
- CRT0=$bcrt0.o
- GCRT0=$bgcrt0.o
-
- ***************
- *** 185,190 ****
- --- 193,214 ----
- l020blong:
- $(MAKE) clean
- $(MAKE) install TARGET="68020 long-int baserel"
- +
- + lsfpshort:
- + $(MAKE) clean
- + $(MAKE) install TARGET="sfp004"
- +
- + lsfplong:
- + $(MAKE) clean
- + $(MAKE) install TARGET="long-int sfp004"
- +
- + lbsfpshort:
- + $(MAKE) clean
- + $(MAKE) install TARGET="baserel sfp004"
- +
- + lbsfplong:
- + $(MAKE) clean
- + $(MAKE) install TARGET="long-int baserel sfp004"
-
- bakclean:
- rm -f *~ *#
- diff -cr ../mntlib33/PatchLev.h ./PatchLev.h
- *** ../mntlib33/PatchLev.h Thu Jun 17 09:25:02 1993
- --- ./PatchLev.h Tue Jul 6 07:50:46 1993
- ***************
- *** 3,6 ****
- * directory.
- */
-
- ! #define PatchLevel "33"
- --- 3,6 ----
- * directory.
- */
-
- ! #define PatchLevel "34"
- Only in .: README.34d
- diff -cr ../mntlib33/_fixsfsi.cpp ./_fixsfsi.cpp
- *** ../mntlib33/_fixsfsi.cpp Sun Jun 6 05:13:54 1993
- --- ./_fixsfsi.cpp Thu Jul 8 06:00:26 1993
- ***************
- *** 28,33 ****
- --- 28,34 ----
- 1: cmpiw #0x8900,a0@(resp)
- beq 1b
- movel a0@,d0
- + rts
-
- #else /* !sfp004 */
-
- diff -cr ../mntlib33/_fltsisf.cpp ./_fltsisf.cpp
- *** ../mntlib33/_fltsisf.cpp Sun Jun 6 05:14:04 1993
- --- ./_fltsisf.cpp Thu Jul 8 06:00:30 1993
- ***************
- *** 23,29 ****
- movew #0x4000,a0@(comm) | load long int to fp0
- cmpiw #0x8900,a0@(resp) | check
- movel a7@(4),a0@
- ! movew #0x7400,a0@(comm) | get double from fp0
- | wait loop is NOT coded directly
- 1: cmpw #0x8900,a0@(resp)
- beq 1b
- --- 23,29 ----
- movew #0x4000,a0@(comm) | load long int to fp0
- cmpiw #0x8900,a0@(resp) | check
- movel a7@(4),a0@
- ! movew #0x6400,a0@(comm) | get single from fp0
- | wait loop is NOT coded directly
- 1: cmpw #0x8900,a0@(resp)
- beq 1b
- diff -cr ../mntlib33/doprnt.c ./doprnt.c
- *** ../mntlib33/doprnt.c Fri Jun 11 01:59:58 1993
- --- ./doprnt.c Thu Jul 8 05:52:50 1993
- ***************
- *** 524,534 ****
- * fieldsz excludes decimal prec; realsz includes it
- */
- fieldsz = size + fpprec;
- if (sign)
- ! fieldsz++;
- if (flags & HEXPREFIX)
- ! fieldsz += 2;
- ! realsz = dprec > fieldsz ? dprec : fieldsz;
-
- /* right-adjusting blank padding */
- if ((flags & (LADJUST|ZEROPAD)) == 0 && width)
- --- 524,534 ----
- * fieldsz excludes decimal prec; realsz includes it
- */
- fieldsz = size + fpprec;
- + realsz = dprec > fieldsz ? dprec : fieldsz;
- if (sign)
- ! realsz++;
- if (flags & HEXPREFIX)
- ! realsz += 2;
-
- /* right-adjusting blank padding */
- if ((flags & (LADJUST|ZEROPAD)) == 0 && width)
- diff -cr ../mntlib33/fcntl.c ./fcntl.c
- *** ../mntlib33/fcntl.c Sat Sep 5 20:22:40 1992
- --- ./fcntl.c Tue Jul 6 10:08:48 1993
- ***************
- *** 7,12 ****
- --- 7,13 ----
- #include <mintbind.h>
- #include <fcntl.h>
- #include <stdarg.h>
- + #include <unistd.h>
-
- extern int __mint; /* MiNT version */
-
- ***************
- *** 25,30 ****
- --- 26,33 ----
-
- if (__mint) {
- r = Fcntl(f, va_arg(argp, void *), cmd);
- + if (r == -ELOCKED)
- + r = -EACCES;
- }
- else
- r = -EINVAL;
- diff -cr ../mntlib33/ffs.c ./ffs.c
- *** ../mntlib33/ffs.c Sun Jul 4 06:02:20 1993
- --- ./ffs.c Thu Jul 8 07:46:18 1993
- ***************
- *** 1,5 ****
- ! /* Find first set bit. By entropy@terminator.rs.itd.umich.edu.
- ! Public domain.
- */
-
- #include <support.h>
- --- 1,7 ----
- ! /*
- ! ffs.c - find first set bit
- ! Carmine T. Guida
- ! 7 - 7 - 93 Public Domain
- */
-
- #include <support.h>
- ***************
- *** 9,22 ****
- int bits;
- {
- register int i;
- - register int mask;
-
- if (!bits)
- return 0;
- ! mask = 0xFF;
- ! for (i = 1; !(bits & mask); i += 8)
- ! mask <<= 8;
- ! for (mask = (1 << (i - 1)); !(bits & mask); i++)
- ! mask <<= 1;
- return i;
- }
- --- 11,47 ----
- int bits;
- {
- register int i;
-
- if (!bits)
- return 0;
- !
- ! i = 1;
- !
- ! #ifndef __MSHORT__
- ! if (!(bits & 0x0000FFFF)) /* Check word */
- ! {
- ! bits >>= 16;
- ! i += 16;
- ! }
- ! #endif
- !
- ! if (!(bits & 0x00FF)) /* Check byte */
- ! {
- ! bits >>= 8;
- ! i += 8;
- ! }
- ! if (!(bits & 0x0F)) /* Check nybble */
- ! {
- ! bits >>= 4;
- ! i += 4;
- ! }
- ! if (!(bits & 0x3)) /* Check 2 bits */
- ! {
- ! bits >>= 2;
- ! i += 2;
- ! }
- ! if (!(bits & 0x1)) /* Check bit */
- ! i += 1;
- !
- return i;
- }
- diff -cr ../mntlib33/frexp.cpp ./frexp.cpp
- *** ../mntlib33/frexp.cpp Sun Jun 6 05:14:52 1993
- --- ./frexp.cpp Thu Jul 8 06:00:36 1993
- ***************
- *** 174,179 ****
- --- 174,180 ----
-
- .globl _frexp
-
- + _frexp:
- tstl sp@(4) | 1st arg == 0 ?
- bne nonzero
- tstl sp@(8)
- ***************
- *** 210,216 ****
- .long 0x0c688900, 0xfff067f8
- movew a0@,a1@ | return exp
- #else
- ! movew #0x7880,a0@(comm) | fetch exp (fmovel from fp1)
- .long 0x0c688900, 0xfff067f8
- movel a0@,a1@ | return exp
- #endif
- --- 211,217 ----
- .long 0x0c688900, 0xfff067f8
- movew a0@,a1@ | return exp
- #else
- ! movew #0x6080,a0@(comm) | fetch exp (fmovel from fp1)
- .long 0x0c688900, 0xfff067f8
- movel a0@,a1@ | return exp
- #endif
- diff -cr ../mntlib33/modf.cpp ./modf.cpp
- *** ../mntlib33/modf.cpp Sun Jun 6 05:15:16 1993
- --- ./modf.cpp Thu Jul 8 06:00:42 1993
- ***************
- *** 124,140 ****
- .globl _modf
- .even
- _modf:
- - movel a1,a7@- | save a1 (necessary?)
- lea 0xfffffa50:w,a0
- movew #0x5403,a0@(comm) | fintrz X -> fp0
- cmpiw #0x8900,a0@(resp) | check
- ! movel a7@(8),a0@ | load X_hi
- ! movel a7@(12),a0@ | load X_low
-
- movew #0x5480,a0@(comm) | X -> fp1
- .long 0x0c688900, 0xfff067f8
- ! movel a7@(8),a0@ | load X_hi
- ! movel a7@(12),a0@ | load X_low
-
- | 000 000 001 0101000 | sub fp0 -> fp1
- movew #0x00a8,a0@(comm) | sub fp0 -> fp1
- --- 124,139 ----
- .globl _modf
- .even
- _modf:
- lea 0xfffffa50:w,a0
- movew #0x5403,a0@(comm) | fintrz X -> fp0
- cmpiw #0x8900,a0@(resp) | check
- ! movel a7@(4),a0@ | load X_hi
- ! movel a7@(8),a0@ | load X_low
-
- movew #0x5480,a0@(comm) | X -> fp1
- .long 0x0c688900, 0xfff067f8
- ! movel a7@(4),a0@ | load X_hi
- ! movel a7@(8),a0@ | load X_low
-
- | 000 000 001 0101000 | sub fp0 -> fp1
- movew #0x00a8,a0@(comm) | sub fp0 -> fp1
- ***************
- *** 141,147 ****
- .word 0x4a68,0xfff0,0x6bfa | test
-
- movew #0x7400,a0@(comm) | fp0 to IntPart
- ! moveal a7@(16),a1 | address of IntPart while the fpu is active
- | wait
- .long 0x0c688900, 0xfff067f8
- movel a0@,a1@+
- --- 140,146 ----
- .word 0x4a68,0xfff0,0x6bfa | test
-
- movew #0x7400,a0@(comm) | fp0 to IntPart
- ! moveal a7@(12),a1 | address of IntPart while the fpu is active
- | wait
- .long 0x0c688900, 0xfff067f8
- movel a0@,a1@+
- ***************
- *** 151,157 ****
- .long 0x0c688900, 0xfff067f8
- movel a0@,d0
- movel a0@,d1
- - movel a7@+,a1 | restore a1
- rts
-
- #endif sfp004
- --- 150,155 ----
- diff -cr ../mntlib33/select.c ./select.c
- *** ../mntlib33/select.c Mon Feb 22 09:57:22 1993
- --- ./select.c Wed Jul 7 09:22:12 1993
- ***************
- *** 5,15 ****
-
- #include <errno.h>
- #include <mintbind.h>
- !
- ! struct timeval {
- ! long tv_sec;
- ! long tv_usec;
- ! };
-
- int
- select(junk, rfds, wfds, xfds, timeout)
- --- 5,11 ----
-
- #include <errno.h>
- #include <mintbind.h>
- ! #include <time.h>
-
- int
- select(junk, rfds, wfds, xfds, timeout)
- diff -cr ../mntlib33/sigactio.c ./sigactio.c
- *** ../mntlib33/sigactio.c Sun Jun 20 14:26:08 1993
- --- ./sigactio.c Tue Jul 6 08:04:36 1993
- ***************
- *** 109,115 ****
- }
- idx = _SIGSET_INDEX(signo);
- pos = _SIGSET_BITPOS(signo);
- ! set->_sigset_data[idx] |= sigmask(pos);
- return 0;
- }
-
- --- 109,115 ----
- }
- idx = _SIGSET_INDEX(signo);
- pos = _SIGSET_BITPOS(signo);
- ! set->__sigset_data[idx] |= sigmask(pos);
- return 0;
- }
-
- ***************
- *** 127,133 ****
- }
- idx = _SIGSET_INDEX(signo);
- pos = _SIGSET_BITPOS(signo);
- ! set->_sigset_data[idx] &= ~(sigmask(pos));
- return 0;
- }
-
- --- 127,133 ----
- }
- idx = _SIGSET_INDEX(signo);
- pos = _SIGSET_BITPOS(signo);
- ! set->__sigset_data[idx] &= ~(sigmask(pos));
- return 0;
- }
-
- ***************
- *** 142,148 ****
- return -1;
- }
- for (idx = _SIGSET_MAX_INDEX; idx >= 0; idx--) {
- ! set->_sigset_data[idx] = 0UL;
- }
- return 0;
- }
- --- 142,148 ----
- return -1;
- }
- for (idx = _SIGSET_MAX_INDEX; idx >= 0; idx--) {
- ! set->__sigset_data[idx] = 0UL;
- }
- return 0;
- }
- ***************
- *** 158,164 ****
- return -1;
- }
- for (idx = _SIGSET_MAX_INDEX; idx >= 0; idx--) {
- ! set->_sigset_data[idx] = ~0UL;
- }
- return 0;
- }
- --- 158,164 ----
- return -1;
- }
- for (idx = _SIGSET_MAX_INDEX; idx >= 0; idx--) {
- ! set->__sigset_data[idx] = ~0UL;
- }
- return 0;
- }
- ***************
- *** 177,183 ****
- }
- idx = _SIGSET_INDEX(signo);
- pos = _SIGSET_BITPOS(signo);
- ! return (set->_sigset_data[idx] & sigmask(pos)) ? 1 : 0;
- }
-
- int
- --- 177,183 ----
- }
- idx = _SIGSET_INDEX(signo);
- pos = _SIGSET_BITPOS(signo);
- ! return (set->__sigset_data[idx] & sigmask(pos)) ? 1 : 0;
- }
-
- int
- ***************
- *** 189,195 ****
- return -1;
- }
- (void) sigemptyset(set);
- ! set->_sigset_data[0] = Psigpending();
- return 0;
- }
-
- --- 189,195 ----
- return -1;
- }
- (void) sigemptyset(set);
- ! set->__sigset_data[0] = Psigpending();
- return 0;
- }
-
- ***************
- *** 208,235 ****
- }
- switch (how) {
- case SIG_BLOCK:
- ! omask = Psigblock(set->_sigset_data[0]);
- break;
- case SIG_UNBLOCK:
- omask = Psigblock(0L);
- ! (void) Psigsetmask(omask & ~(set->_sigset_data[0]));
- break;
- case SIG_SETMASK:
- ! omask = Psigsetmask(set->_sigset_data[0]);
- break;
- default:
- errno = EINVAL;
- rv = -1;
- }
- ! if (oset) oset->_sigset_data[0] = omask;
- return rv;
- }
-
- int
- ! sigsuspend(sigmask)
- ! const sigset_t *sigmask;
- {
- ! Psigpause(sigmask->_sigset_data[0]);
- errno = EINTR;
- return -1;
- }
- --- 208,235 ----
- }
- switch (how) {
- case SIG_BLOCK:
- ! omask = Psigblock(set->__sigset_data[0]);
- break;
- case SIG_UNBLOCK:
- omask = Psigblock(0L);
- ! (void) Psigsetmask(omask & ~(set->__sigset_data[0]));
- break;
- case SIG_SETMASK:
- ! omask = Psigsetmask(set->__sigset_data[0]);
- break;
- default:
- errno = EINVAL;
- rv = -1;
- }
- ! if (oset) oset->__sigset_data[0] = omask;
- return rv;
- }
-
- int
- ! sigsuspend(signalmask)
- ! const sigset_t *signalmask;
- {
- ! Psigpause(signalmask->__sigset_data[0]);
- errno = EINTR;
- return -1;
- }
-